const http = require('http');

const app = http.createServer((requset,response)=>{
    console.log("响应了");

    // 设置响应头
    response.setHeader('content-type','text/html;charset=utf-8')

    response.end('这是中文');
})

app.listen(8000,()=>{
    console.log("服务启动成功");
})